package com.sky.mapper;


import com.sky.annotation.AutoFill;
import com.sky.entity.Category;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {
    @AutoFill(value = OperationType.UPDATE)
    void update(Category category);

    List page(String name,Integer type);


    List get(Integer type);

    @AutoFill(value = OperationType.INSERT)
    void insert(Category category);

    void delete(Long id);

    Category getById(Long categoryId);
}
